package com.api.service;

import com.api.common.page.PageData;
import com.api.common.service.BaseService;
import com.api.entity.User;
import com.api.entity.dto.ItemDTO;
import com.api.entity.dto.LoginDTO;
import com.api.entity.dto.UserDTO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author author
 * @since 2024-08-10
 */
public interface UserService extends BaseService<User> {
    /**
     * 用户登录
     * @param dto    登录表单
     * @return        返回登录信息
     */
    Map<String, Object> login(LoginDTO dto);

    User getUserByUserId(Long userId);


    PageData<UserDTO> page(Map<String, Object> params);

}
